---
baseimage:
  repositories:
    - | 
      [base]
      name=CentOS-$releasever - Base
      mirrorlist=http://mirrorlist.centos.org/?release=$releasever&arch=$basearch&repo=os&infra=$infra
      #baseurl=http://mirror.centos.org/centos/$releasever/os/$basearch/
      gpgcheck=1
      gpgkey=https://www.centos.org/keys/RPM-GPG-KEY-CentOS-7
    - |
      [updates]
      name=CentOS-$releasever - Updates
      mirrorlist=http://mirrorlist.centos.org/?release=$releasever&arch=$basearch&repo=updates&infra=$infra
      #baseurl=http://mirror.centos.org/centos/$releasever/updates/$basearch/
      gpgcheck=1
      gpgkey=https://www.centos.org/keys/RPM-GPG-KEY-CentOS-7
    - |
      [extras]
      name=CentOS-$releasever - Extras
      mirrorlist=http://mirrorlist.centos.org/?release=$releasever&arch=$basearch&repo=extras&infra=$infra
      #baseurl=http://mirror.centos.org/centos/$releasever/updates/$basearch/
      gpgcheck=1
      gpgkey=https://www.centos.org/keys/RPM-GPG-KEY-CentOS-7

  releasever: 7
  packages:
    - systemd
    - systemd-networkd
    - yum
    - centos-release
  enableunits:
    - systemd-networkd.service
  files:
    "/etc/systemd/network/80-container-host0.network": |
      [Match]
      Virtualization=container
      Name=host0
      
      [Network]
      DHCP=yes
      LinkLocalAddressing=yes
  appendfiles:
    "/etc/securetty": |
      pts/0
      pts/1
      pts/2
      pts/3
      pts/4
      pts/5
      pts/6
      pts/7

openstack:
  baseimage: baseimage
  repositories:
    - |
      [centos-openstack-newton]
      name=CentOS-7 - OpenStack newton
      baseurl=http://mirror.centos.org/centos/7/cloud/$basearch/openstack-newton/
      gpgcheck=1
      enabled=1
      gpgkey=https://raw.githubusercontent.com/openstack/puppet-openstack_extras/master/files/RPM-GPG-KEY-CentOS-SIG-Cloud
    - |
      [centos-qemu-ev]
      name=CentOS-$releasever - QEMU EV
      baseurl=http://mirror.centos.org/centos/$releasever/virt/$basearch/kvm-common/
      gpgcheck=1
      enabled=1
      gpgkey=https://raw.githubusercontent.com/openstack/puppet-openstack_extras/master/files/RPM-GPG-KEY-CentOS-SIG-Virtualization
    - |
      [centos-ceph-jewel]
      name=CentOS-$releasever - Ceph Jewel
      baseurl=http://mirror.centos.org/centos/$releasever/storage/$basearch/ceph-jewel/
      gpgcheck=1
      enabled=1
      gpgkey=https://raw.githubusercontent.com/CentOS-Storage-SIG/centos-release-storage-common/master/RPM-GPG-KEY-CentOS-SIG-Storage

keystone:
  baseimage: openstack
  packages:
    - openstack-keystone
    - httpd
    - mod_wsgi
    - memcached
    - python-memcached
  enableunits:
    - httpd.service
    - memcached.service
  postscripts:
    - 'ln -sf /usr/share/keystone/wsgi-keystone.conf /etc/httpd/conf.d/'

glance-api:
  baseimage: openstack
  packages:
    - openstack-glance
    - python-rbd
    - ceph-common
  enableunits:
    - openstack-glance-api.service
    - openstack-glance-registry.service

nova-api:
  baseimage: openstack
  packages:
    - openstack-nova-api
    - openstack-nova-conductor
    - openstack-nova-console
    - openstack-nova-novncproxy
    - openstack-nova-scheduler
  enableunits:
    - openstack-nova-api.service
    - openstack-nova-consoleauth.service
    - openstack-nova-scheduler.service
    - openstack-nova-conductor.service
    - openstack-nova-novncproxy.service

nova-compute:
  baseimage: openstack
  packages:
    - openstack-nova-compute
  enableunits:
    - openstack-nova-compute.service
